<div class="modal-header">
  <div class="modal-title">用户关联</div>
</div>
<nz-form-item>
  <nz-form-label nzXs="24" nzSm="7" nzRequired nzFor="roleCode">组员</nz-form-label>
  <nz-form-control nzXs="24" nzSm="12" nzMd="10">
    <nz-select style="width: 100%;" nzMode="multiple" [(ngModel)]="selectedUser"
      nzPlaceHolder="选择用户" nzAllowClear nzShowSearch [nzServerSearch]="true" (nzOnSearch)="onSearch($event)">
      <ng-container *ngFor="let o of optionList">
        <nz-option *ngIf="!isLoading" [nzValue]="o.value" [nzLabel]="o.label"></nz-option>
      </ng-container>
      <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
        <i class="anticon anticon-loading anticon-spin loading-icon"></i> 加载中...
      </nz-option>
    </nz-select>
  </nz-form-control>
</nz-form-item>
<div class="modal-footer">
  <button nz-button type="button" (click)="close()">关闭</button>
  <button nz-button type="button" [nzType]="'primary'" (click)="save()">保存</button>
</div>

